package cn.ticket.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.RefundlogMapper;
import cn.ticket.model.Refundlog;
import cn.ticket.service.RefundLogService;
@Service
public class RefundLogServiceImpl implements RefundLogService {

	@Autowired
	RefundlogMapper refundlogMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return refundlogMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Refundlog record) {
		// TODO Auto-generated method stub
		return refundlogMapper.insert(record);
	}

	@Override
	public int insertSelective(Refundlog record) {
		// TODO Auto-generated method stub
		return refundlogMapper.insertSelective(record);
	}

	@Override
	public Refundlog selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return refundlogMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Refundlog record) {
		// TODO Auto-generated method stub
		return refundlogMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Refundlog record) {
		// TODO Auto-generated method stub
		return refundlogMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Refundlog> getAll() {
		// TODO Auto-generated method stub
		return refundlogMapper.getAll();
	}

	@Override
	public List<Refundlog> getByCount(int start, int count) {
		// TODO Auto-generated method stub
		return refundlogMapper.getByCount(start, count);
	}

	@Override
	public List<Map<String, Object>> getRefundInfoByDateRange(String startDate, String endDate) {
		// TODO Auto-generated method stub
		return refundlogMapper.getRefundInfoByDateRange(startDate, endDate);
	}

}
